﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace mapxp
{
    class Program
    {
          static void Main(string[] args)
          {
              Console.WriteLine("Hello World");

              Map m = new Map("C://map2.txt");
             // List<My_Point> expected = Algo.intersection(new My_Point(300,250), new My_Point(200, 100), m);
              List<My_Point> expected = Algo.Find_Way(new My_Point(300, 250), 7, new My_Point(1300, 450), 7, 900, m);
              for (int i = 0; i < expected.Count; i++) {

                  Console.WriteLine(expected[i].x_value() + " " + expected[i].y_value()+" "+expected[i].z_value());
              
              }

              double dist = Algo.distance(new My_Point(300, 250), new My_Point(1100, 50), m);
              Console.WriteLine(dist);

              double h = Algo.calc_point_height(new My_Point(500, 450), m);
              Console.WriteLine(h);
              /*
              bool ans = Algo.can_see(new My_Point(300, 250),0, new My_Point(200, 100),0, m);
              bool ans2 = Algo.can_see_ark(new My_Point(300, 250),0, new My_Point(200, 100),0, m);
              Console.WriteLine(ans);
              Console.WriteLine(ans2);
              */
          }
    }
}
